In [15]:
from google.colab import files
uploaded = files.upload()
for fn in uploaded.keys():
print('User uploaded file "{name}" with length {length} bytes'.format(
name=fn, length=len(uploaded[fn])))
data = uploaded[fn]
with open(fn, 'wb') as file:
file.write(data)